import request from '../utils/request'
const getSearchSuggestion = ({ q }) => {
  return request({
    url: '/v1_0/suggestion',
    method: 'get',
    params: {
      q
    }
  })
}
const searchArticles = ({ q, page, per_page }) => {
  return request({
    url: '/v1_0/search',
    method: 'get',
    params: {
      q,
      page,
      per_page
    }
  })
}
export { getSearchSuggestion, searchArticles }
